<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">

<style>
    .addList{
        text-align: center;
    }
    .addList p, .remove{
        cursor:pointer;
        font-size: 16px;
        color: #0e9aef;
        display: inline-block;
    }

    .remove{
        width: 40px;
        position: absolute;
        top: 0;
        right: -50px;
        text-align: center;
    }

    #addParams{
        display: table;
    }

    .parseInset{
        margin-top: 10px;width: 100%;display:table;position: relative
    }
    .taskDesc{
        margin-top: 10px;
    }
    .form-group .col-sm-12{
        box-shadow: none;
    }
</style>

<head th:include="include :: header"></head>
<body>

<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">模板名称：</label>
                            <div class="col-sm-8">
                                <input id="moduleName" name="moduleName" class="form-control" type="text" placeholder="请输入模板名称" th:value="${modelContent.moduleName}">
                            </div>
                        </div>

                        <input type="hidden" id="id" th:value="${modelContent.id}">

                        <div class="addBox">

                            <div class="form-group">
                                <label class="col-sm-3 control-label">评分细则: </label>

                                <div id="addParams" class="col-sm-8">
                                    <div class="parseInset" style="margin-top: 10px;width: 100%;display:table;position: relative" th:each="item:${modelContent.jzJinzhuanModuleContent}">
                                        <div class="taskName col-sm-6" style="padding-left: 0">
                                            <input name="topicName" class="form-control" autocomplete="off" type="text" placeholder="请输入细则名称" th:value="${item.contentName}">
                                        </div>
                                        <div class="taskScore col-sm-6" style="padding-left: 0;padding-right: 0">
                                            <input name="score" class="form-control" autocomplete="off" type="text" placeholder="请输入分值" th:value="${item.contentScore}">
                                        </div>
                                        <div class="taskDesc col-sm-12" style="padding-left: 0;padding-right: 0">
                                            <textarea name="description" class="form-control" autocomplete="off" type="text" placeholder="请输入具体细则" th:text="${item.detailContent}"></textarea>
                                        </div>
                                        <div class="remove">删除</div>
                                    </div>
                                </div>

                            </div>

                            <div class="addList addListB"><p>添加</p></div>

                        </div>

                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="button" class="btn btn-primary" id="btn">提交</button>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


<div th:include="include::footer"></div>

<script type="text/javascript" src="/js/webJs/jzweb/moduleContent/updateModule.js">
</script>
</body>
</html>
